<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
$(document).ready(function(){
    $.ajax({
		    url:"mshop!getAllStoreAjax",
		  	datatype:"json",
		  	success : function(data){
	            var shops = eval("("+ data+ ")");
	            var dateArray = eval(shops);
	            $("#balance").append("<li><a href='mbalance!watchEnterpriseBalance'><i class='icon-double-angle-right'></i>总体概况</a></li>");
	            $("#shopping").append("<li><a href='mbalance!getEnterpriseConsumePage'><i class='icon-double-angle-right'></i>总体概况</a></li>");
	        	  for(var i=0;i<dateArray.length;i++){
	           	$("#balance").append("<li><a href='mbalance!getAllBalancePage?balance.shopId="+dateArray[i].id+"'><i class='icon-double-angle-right'></i>"+dateArray[i].name+"</a></li>");
	           	$("#shopping").append("<li><a href='mbalance!getAllConsumePage?consume.shopId="+dateArray[i].id+"'><i class='icon-double-angle-right'></i>"+dateArray[i].name+"</a></li>");
	           } 
  			}
  		 });
	});
</script>

